<?php
namespace app\api\controller;

use app\api\logic\File as loginFile;

class File extends Base
{
    // 测试文件上传
    public function upload()
    {
        $delayCount = 0;
        $totalCount = 0;
        
        $a = round($delayCount/$totalCount*100, 2);
        
        dump($a);die;
        
        return $this->fetch();
    }
    
    // 测试文件上传
    public function uploadFile()
    {
        $file = new loginFile();
        $res = $file->uploadFile(1, 500000, 200, 200);
        dump($res);
    }
}
